/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package boundless.roster;

/**
 * Represents a single player in a Fantasy Team's Roster.  Can be traded around.
 * @author hendrikdekock
 */
public class RosterNode {
    
    private int playerId;
    private int posId;
    private boolean active;
    
    public RosterNode(int plId, int posId, boolean act) {
        playerId = plId;
        this.posId = posId;
        active = act;
    }
    
    public void toggleActive() {
        active = !active;
    }
    
    public boolean getActive() {
        return active;
    }
    
    public short getActiveShort() {
        if (active)
            return 1;
        return 0;
    }
    
    public int getPos() {
        return posId;
    }
    
    public int getPlayerId() {
        return playerId;
    }
    
}
